package com.zhumei.keyscale.util;

import me.jingbin.bymvvm.global.*;
import androidx.core.content.*;
import android.content.*;
import android.graphics.drawable.*;

public class ResourceManager
{
    public static int getColResource(final int n) {
        return ContextCompat.getColor((Context)AppGlobals.getApplication(), n);
    }
    
    public static Drawable getDrawableResource(final int n) {
        return ContextCompat.getDrawable((Context)AppGlobals.getApplication(), n);
    }
    
    public static String getStringResource(final int n) {
        return AppGlobals.getApplication().getResources().getString(n);
    }
}
